<?php
/* @var $this SiteController */
/* @var $model LoginForm */
/* @var $form CActiveForm  */

$this->pageTitle=Yii::app()->name . ' - Connexion';
?>

<h1>Connexion</h1>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'login-form',
	'htmlOptions'=>array('class'=>'form-horizontal'),
	'enableAjaxValidation'=>false,
)); ?>

	<?php echo $form->errorSummary($model,NULL,NULL,array("class"=>"alert alert-danger")); ?>

	<div class="form-group<?php if ($model->getErrors('pseudo')) echo " has-error";?>">
		<?php echo $form->labelEx($model,'pseudo',array("class"=>"col-lg-2 control-label")); ?>
		<div class="row"><div class="col-lg-3"><?php echo $form->textField($model,'pseudo',array("class"=>"form-control","placeholder"=>"Saisissez votre pseudo",'size'=>45,'maxlength'=>45)); ?></div></div>
	</div>
	
	<div class="form-group<?php if ($model->getErrors('password')) echo " has-error";?>">
		<?php echo $form->labelEx($model,'password',array("class"=>"col-lg-2 control-label")); ?>
		<div class="row"><div class="col-lg-3"><?php echo $form->passwordField($model,'password',array("class"=>"form-control","placeholder"=>"Saisissez votre mot de passe",'size'=>45,'maxlength'=>45)); ?></div></div>
	</div>
	
	<div class="form-group">
		<?php echo $form->label($model,'rememberMe',array("class"=>"col-lg-2 control-label")); ?>
		<div class="col-lg-10">
			<label class="checkbox-inline">
				<?php echo $form->checkBox($model,'rememberMe',array("id"=>"checkboxadmin_sel","name"=>"rememberMe","uncheckValue"=>NULL,"value"=>"1")); ?>
			</label>
		</div>
	</div>
	
	<div class="form-group">
		<div class="col-lg-offset-2 col-lg-10">
			<?php echo CHtml::submitButton('Connexion',array("class"=>"btn btn-primary")); ?>
		</div>
	</div>

<?php $this->endWidget(); ?>
</div><!-- form -->
